<%@ page language="java" pageEncoding="UTF-8"%>
<body>
	<script type="text/javascript">
		$(function() {
			//增加回车发送消息
			$('#message${param.uid }').on('keyup', function(event) {
				if(event.ctrlKey && event.which == 13 || event.which == 10) {
					sendMsgToUser('${param.uid }');
				}
			});
		});
	</script>
	<table style="width:100%; height: 100%; text-align: center">
		<tr>
			<td>
				<div id="messageView${param.uid }" style="border:1px solid #000; height:200px; width:98%; text-align: left; overflow: auto;"></div></td>
		</tr>
		<tr>
			<td><textarea id="message${param.uid }" style="height:80px; width:98%"></textarea></td>
		</tr>
		<tr>
			<td style="text-align: right;"><span id="sendInfo${param.uid }" style="color: red; font-size: 12px"></span>&nbsp; <a href="javascript:void(0)" class="easyui-linkbutton" onclick="sendMsgToUser('${param.uid }')">发送</a></td>
		</tr>
	</table>
</body>
